package com.pm.mapper.official;

import com.pm.entity.po.official.OfficialMeanDevRank;
import com.pm.entity.po.official.OfficialParamPo;
import com.pm.entity.vo.official.OfficialCommonVo;
import com.pm.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OfficialMeanDevRankMapper extends BaseMapper<OfficialMeanDevRank> {

    Integer addOne(OfficialMeanDevRank officialMeanDevRank);

    Integer removeOne(Integer id);

    Integer update(OfficialMeanDevRank officialMeanDevRank);

    List<OfficialMeanDevRank> getList(OfficialCommonVo officialCommonVo);

    int getUserNumByYearAndTimeNode(@Param("paramYear") String paramYear, @Param("timeNode") String timeNode);

    List<OfficialMeanDevRank> getMeanDevSum(OfficialParamPo officialParamPo);

    int batchUpdate(@Param("meanDevRankList") List<OfficialMeanDevRank> meanDevRankList);
}